﻿using GKQC.Common;
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;

namespace GKQC.Machine
{
    public class LcrMeterDebug : ILcrMeter
    {
        public bool Check(SerialPort sp)
        {
            bool flag = false;
            return flag;
        }

        public bool AnalysisData(string str, out decimal param1, out decimal param2, out decimal param3, out decimal param4, string testItem
            ,string freq,bool isRaw)
        {
            param1 = param2 = param3 = param4 = RandomSugar.GetFormatedNumeric(100, 1000)/100m;

            return true;
        }

        public void Fetch(SerialPort sp, string testItem)
        {
            
        }

        public string GetData(SerialPort sp)
        {
            return string.Empty;
        }

        public void Local(SerialPort sp)
        {
            
        }

        public void Open(SerialPort sp)
        {
            
        }

        public void Remote(SerialPort sp)
        {
            
        }

        public void SetFreq(SerialPort sp, string freq, string freq2,string testItem)
        {
            
        }

        public void Short(SerialPort sp)
        {
            
        }
    }
}
